﻿using OpenCvSharp;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ViewROI
{
    public class HImage: HObject
    {
        Mat mat;
        public Bitmap bmp;
        Rectangle ImagePart;
        public HImage()
        {
            mat = new Mat();
        }

        public HImage(Rectangle imagePart)
        {
            ImagePart = imagePart;
        }
        public void GetImagePointer1(out string s, out int w, out int h) 
        {
            s = "1";
            h = ImagePart.Height;
            w = ImagePart.Width;
        }

        public HRegion GetDomain()
        {
            return new HRegion(ImagePart.Y, ImagePart.X, ImagePart.Width, ImagePart.Height);
        }
    }
}
